package com.gxks.lhs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 图片存放地址表
 * </p>
 *
 * @author LuoHaisong
 * @since 2023-05-29
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Imgs对象", description = "图片存放地址表")
public class Imgs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("图片的id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("存放地址")
    private String url;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("关联的商品id，如有")
    private Integer goodsId;

    @ApiModelProperty("关联的评论id，如有")
    private Integer evaluationId;

    @ApiModelProperty("关联的举报id，如有")
    private Integer reportId;

    @ApiModelProperty("关联的聊天id，如有")
    private Integer chatId;


}
